
import { getUserInfoUrl } from "@/command/apiTool";
import { useDetail, useList } from "@/hooks";
import { getAction, postAction } from "@/command/netTool";
import { reactive, watch } from "vue";

export const useRequest = () => {
    const form = reactive({
        pageNo: 1,

    })
    //
    const [historyNum,] = useDetail(
        getUserInfoUrl({
            dh: "/api/H5/service/helpWork/heavy/useWorkNum",
            xh: "/api/H5/service/helpWork/small/helpWorkNum",
        }),
        0
    );

    const [useHistoryListForNum] = useDetail(
        getUserInfoUrl({
            dh: "",
            xh: "/api/H5/service/helpWork/small/historyList",
        }),
        {
            count: '',
            list: []
        }

        // {
        //     "code": 0,
        //     "data": {
        //         "count": 0,
        //         "otherData": {},
        //         "pageNo": 0,
        //         "pageSize": 0
        //     },
        //     "msg": "",
        //     "status": 0
        // }
    );

    return {
        historyNum, form,useHistoryListForNum
    }
}